<div id="wrapper-content">

    <table class="titrepage" width="100%">
        <tr>              
            <td >La liste des contacts</td>
            <td align="right">Total | <?php echo $total ?> </td>
        </tr>
    </table>

    <table width="100%" class="list">
        <thead>
            <tr>
                <th>Nom</th>
                <th>Telephone</th>
                <th>Date</th>
                <th>Sujet</th>
                <th>Message</th>
                
                <th colspan="2">Action</th>
                
            </tr>
        </thead>
        <?php foreach ($query as $aRow): ?>
            <tr>
                <td><?php echo $aRow['nom'].' '. $aRow['prenom'];?></td>
                <td><?php echo $aRow['tel']; ?></td>
                <td><?php echo $aRow['date'];?></td>
                <td><?php echo $aRow['sujet'];?></td>
                <td><?php echo $aRow['message'];?></td>
                 
                <td><a href="<?php echo site_url('client/delete_contact')."/".$aRow['id']?>"><img border="0"src="<?php echo base_url()?>assets/admin/images/supprimer.png"/></a></td>
                <td ><a href="<?php echo site_url('client/detail_contact')."/".$aRow['id']?>" ><img border="0"src="<?php echo base_url();?>assets/admin/images/detail.png"/></a></td>
                </tr>
        <?php endforeach; ?>
                </table>
<?php echo $pagination; ?>
</div>
<!--END wrapper-content-->
